﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FluentNHibernate.Automapping.Alterations;
using TrilhaImovel.Core.Entities;
using FluentNHibernate.Automapping;

namespace TrilhaImovel.Data.NHibernateMaps
{
    public class ExampleMap : IAutoMappingOverride<Example>
    {
        public void Override(AutoMapping<Example> mapping)
        {
            //mapeamento de exemplo
            mapping.Table("tbl_Example");

            mapping.Id(x => x.Id).Column("CodExample");
            mapping.Map(x => x.Description).Column("DsDescription");
        }
    }
}
